cmake_minimum_required(VERSION 3.10.2)

# Declares and names the project.

project("memorymanagement")

# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.

add_library( # Sets the name of the library.
             digest

             # Sets the library as a shared library.
             SHARED

             # Provides a relative path to your source file(s).

             sha256.c
             sm3.c)

# 指定生成目标
add_executable(test.out test.c)
TARGET_LINK_LIBRARIES( test.out digest )
